function topList(){
    // 二级
    let headPositon = document.querySelector('.header-controller-position')
    let areaList = document.querySelector('.area-list')
    headPositon.addEventListener('mouseenter',function(){
        
        areaList.style.display='block'
        headPositon.addEventListener('mouseleave',function(){
            areaList.style.display=''
        })
    })
    
    // 划过变色
    var oA = document.querySelectorAll('.area-list li') 
   oA.forEach(function(ele,index){
    ele.addEventListener('mouseenter', function() {
        for(var i = 0; i < oA.length; i++) {
            oA[i].style.color='#333'
        }
        ele.style.color = '#d3b145'
    })
    ele.addEventListener('mouseleave', function() {
        ele.style.color = '#333'
    })
   })



   //    点击变色
   
    // $('.nav-menu a').addClass('active')
    // let aaa = document.querySelectorAll('.nav-menu a')
    // console.log(aaa)
   $('.nav-menu a').click(function () {
    $('.nav-menu a').removeClass('active')
    $(this).addClass('active')
 // console.log('aaa')
})
}




   


function footerList(){
    let headPositon = document.querySelectorAll('.wz-qrcode-hove')
    let areaList = document.querySelectorAll('.wz-qrcode-wrap')
    headPositon.forEach(function (ele, index) {
        ele.addEventListener('mouseenter',function(){
        
            areaList[index].style.display='block'
            ele.addEventListener('mouseleave',function(){
                areaList[index].style.display=''
            })
        })
    })

    let oA = document.querySelector('.business-area')
    let oB = document.querySelector('.hover-box')
    oA.addEventListener('mouseenter', function() {
        oB.style.display='block'
        oB.addEventListener('mouseleave', function() {
            oB.style.display=''
        })
    })



// 划过变色

    var oD = document.querySelectorAll('.hover-box a') 
   oD.forEach(function(ele,index){
    ele.addEventListener('mouseenter', function() {
        for(var i = 0; i < oD.length; i++) {
            oD[i].style.color='#333'
        }
        ele.style.color = '#d3b145'
    })
    ele.addEventListener('mouseleave', function() {
        ele.style.color = '#333'
    })
   })
}
    